package com.hancai.model;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.hancai.config.converter.BarrageAuthorConverter;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * t_barrage
 * ExcelIgnoreUnannotated没有加注解的字段就不参与Excel的读写
 */

@ExcelIgnoreUnannotated
@Data
public class TBarrage implements Serializable {
    /**
     * 弹幕id
     */
    private Integer id;

    /**
     * 内容
     */
    @ExcelProperty(value = "弹幕内容")
    private String content;

    /**
     * 用户id
     */
    @ExcelProperty(value = "弹幕发布人",converter = BarrageAuthorConverter.class)
    private TClient author;

    /**
     * 视频id
     */
    @ExcelProperty(value = "视频id")
    private Long videoId;

    /**
     * 视频标题
     */
    @ExcelProperty(value = "视频标题")
    private String videoTitle;

    /**
     * 视频时长(单位秒)
     */
    @ExcelProperty(value = "视频时长")
    private Integer videoTime;

    /**
     * 点赞数
     */
    @ExcelProperty(value = "点赞数")
    private Integer likes;

    /**
     * 颜色
     */
    @ExcelProperty(value = "颜色")
    private String color;

    /**
     * 字体大小
     */
    @ExcelProperty(value = "字体大小")
    private String fontSize;

    /**
     * 发布时间
     */
    @ExcelProperty(value = "发布时间")
    private Date releaseTime;

    /**
     * 状态（0=正常，1=禁用）
     */
    @ExcelProperty(value = "弹幕状态")
    private Integer status;

    private static final long serialVersionUID = 1L;
}
